

<%@ page import="ecitys.gcs.Sindicato" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="main" />
        <g:set var="entityName" value="${message(code: 'sindicato.label', default: 'Sindicato')}" />
        <title><g:message code="default.edit.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.edit.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${sindicatoInstance}">
            <div class="errors">
                <g:renderErrors bean="${sindicatoInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post" >
                <g:hiddenField name="id" value="${sindicatoInstance?.id}" />
                <g:hiddenField name="version" value="${sindicatoInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="nomeDoSindicato"><g:message code="sindicato.nomeDoSindicato.label" default="Nome Do Sindicato" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'nomeDoSindicato', 'errors')}">
                                    <g:textField name="nomeDoSindicato" maxlength="30" value="${sindicatoInstance?.nomeDoSindicato}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cnpj"><g:message code="sindicato.cnpj.label" default="Cnpj" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'cnpj', 'errors')}">
                                    <g:textField name="cnpj" maxlength="11" value="${sindicatoInstance?.cnpj}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="tipoDeContribuicao"><g:message code="sindicato.tipoDeContribuicao.label" default="Tipo De Contribuicao" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'tipoDeContribuicao', 'errors')}">
                                    <g:textField name="tipoDeContribuicao" value="${fieldValue(bean: sindicatoInstance, field: 'tipoDeContribuicao')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="enderecoEmail"><g:message code="sindicato.enderecoEmail.label" default="Endereco Email" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'enderecoEmail', 'errors')}">
                                    <g:textField name="enderecoEmail" value="${sindicatoInstance?.enderecoEmail}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="enderecoSite"><g:message code="sindicato.enderecoSite.label" default="Endereco Site" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'enderecoSite', 'errors')}">
                                    <g:textField name="enderecoSite" value="${sindicatoInstance?.enderecoSite}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="mesDataBase"><g:message code="sindicato.mesDataBase.label" default="Mes Data Base" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'mesDataBase', 'errors')}">
                                    <g:textField name="mesDataBase" value="${fieldValue(bean: sindicatoInstance, field: 'mesDataBase')}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="bairro"><g:message code="sindicato.bairro.label" default="Bairro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'bairro', 'errors')}">
                                    <g:textField name="bairro" value="${sindicatoInstance?.bairro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="cep"><g:message code="sindicato.cep.label" default="Cep" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'cep', 'errors')}">
                                    <g:textField name="cep" value="${sindicatoInstance?.cep}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="complemento"><g:message code="sindicato.complemento.label" default="Complemento" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'complemento', 'errors')}">
                                    <g:textField name="complemento" value="${sindicatoInstance?.complemento}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="ddd"><g:message code="sindicato.ddd.label" default="Ddd" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'ddd', 'errors')}">
                                    <g:textField name="ddd" value="${sindicatoInstance?.ddd}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="fax"><g:message code="sindicato.fax.label" default="Fax" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'fax', 'errors')}">
                                    <g:textField name="fax" value="${sindicatoInstance?.fax}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="logradouro"><g:message code="sindicato.logradouro.label" default="Logradouro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'logradouro', 'errors')}">
                                    <g:textField name="logradouro" value="${sindicatoInstance?.logradouro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="numeroLogradouro"><g:message code="sindicato.numeroLogradouro.label" default="Numero Logradouro" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'numeroLogradouro', 'errors')}">
                                    <g:textField name="numeroLogradouro" value="${sindicatoInstance?.numeroLogradouro}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="telefone"><g:message code="sindicato.telefone.label" default="Telefone" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'telefone', 'errors')}">
                                    <g:textField name="telefone" value="${sindicatoInstance?.telefone}" />
                                </td>
                            </tr>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                  <label for="verba"><g:message code="sindicato.verba.label" default="Verba" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: sindicatoInstance, field: 'verba', 'errors')}">
                                    <g:select name="verba.id" from="${ecitys.gcs.Verba.list()}" optionKey="id" value="${sindicatoInstance?.verba?.id}"  />
                                </td>
                            </tr>
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" action="update" value="${message(code: 'default.button.update.label', default: 'Update')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
